package com.example.smartlearning.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.smartlearning.entity.LessonEntity;
import com.example.smartlearning.entity.NewEntity;

public interface NewService extends IService<NewEntity> {
    String selectAllNews(int start, int limit);

    String selectByUser(String interest);

    String selectNewDetail(int newId);

    String updateNewById(int newId, String newTitle, String newDetail, String createTime, String newSort, String newInImg, String newImg);

    String addNew(String newTitle, String newDetail, String createTime, String newSort, int newUser, String newInImg, String newImg);

    String deleteByNewId(int id);
}
